<?php
function l($data) {
    return $data;
}
?>

<!DOCTYPE html>
<html lang="en">
    <head>
        <link rel="stylesheet" type="text/css" href="http://localhost/tani_makmur_ci/library/dropdown/ddlevelsmenu-base.css" />
        <link rel="stylesheet" type="text/css" href="http://localhost/tani_makmur_ci/library/dropdown/ddlevelsmenu-topbar.css" />
        <link rel="stylesheet" type="text/css" href="http://localhost/tani_makmur_ci/library/dropdown/ddlevelsmenu-sidebar.css" />
        <script type="text/javascript" src="http://localhost/tani_makmur_ci/library/dropdown/ddlevelsmenu.js"></script>
        <STYLE type="text/css">
              BODY { background: url('<?php echo base_url();?>library/blueloginbox/images/bg.jpg'); }
        </STYLE>
        <link href="http://localhost/tani_makmur_ci/library/dropdownmenu/dropdown-menu.css" media="screen" rel="stylesheet" type="text/css" />
        <meta charset="utf-8" />


        <?php

        foreach($css_files as $file): ?>
        <link type="text/css" rel="stylesheet" href="<?php echo $file; ?>" />


        <?php endforeach; ?>
        <?php foreach($js_files as $file): ?>

        <script src="<?php echo $file; ?>"></script>
        <?php endforeach; ?>

        <style type='text/css'>
            body
            {
                font-family: Arial;
                font-size: 14px;
            }
            a {
                color: blue;
                text-decoration: none;
                font-size: 14px;
            }
            a:hover
            {
                text-decoration: underline;
            }
        </style>
    </head>
    <body>
        <?php
        require_once('header.php')
                ?>
        <div style='height:20px;'></div>
        <div>
            <?php
            $output = str_ireplace('<span class="ui-button-icon-primary ui-icon ui-icon-circle-plus"></span>', '', $output);
            $output = str_ireplace('<span class="ui-button-text">Tambah Record</span>', '', $output);
            $output = str_ireplace('<span class="ui-button-icon-primary ui-icon ui-icon-circle-minus"></span>', '', $output);
            $output = str_ireplace('<span class="ui-button-text">&nbsp;Hapus</span>', '', $output);            
            $output = str_ireplace('<span class="ui-button-text">&nbsp;Ubah</span>', '<span class="ui-button-text">&nbsp;Detail</span>', $output);
            $output = str_ireplace("<input type='submit' value='Simpan Perubahan' class='ui-input-button' />", '', $output);
            $output = str_ireplace("<input type='button' value='Simpan dan Kembali' class='ui-input-button' id=\"save-and-go-back-button\"/>", '', $output);
            $output = str_ireplace("<input type='button' value='Batal' onclick='javascript: return goToList()' class='ui-input-button' />", "<input type='button' value='Kembali' onclick='history.go(-1)' class='ui-input-button' />", $output);
            echo $output;
            ?>
        </div>
        <!-- Beginning footer -->
        <div></div>
        <!-- End of Footer -->
    </body>
</html>